<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/3/21
  Time: 9:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    String user=request.getSession().getAttribute("user")+"";
%>
<c:set var="ctx" value="<%=basePath%>"  />
<c:set var="user" value="<%=user%>"  />
<html>
<head>
    <title>与我相关</title>

    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css" />
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <style type="text/css">
        .navbar{
            background-color: #DEB887;
        }
        /*更改左侧栏高度 颜色 大小*/
        a.list-group-item{
            color: #821f1f;
            height: 80px;
            font-size: 15px;
        }
        .list-group-item {
            padding: 25px 20px;
        }
        /*更改背景颜色*/
        a.list-group-item:hover{
            background-color: #FAF0E6;
        }
    </style>
    <script type="application/javascript">
        var ctx= '${ctx}';
        var user='${business}'
        console.info("桃子大水阿比"+ctx+"--我的信息:"+user)
    </script>
</head>
<body>
<nav class="navbar " role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">
                <img src="/static/img/logoNew.png" width="100px" height="45px" style="margin-top: -10px" />
            </a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                <li>
                    <span class="navbar-brand">我的管理</span>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a>欢迎[${user}]登录</a>
                </li>
                <li>
                    <a href="update">修改信息</a>
                </li>
                <li>
                    <a href = "logout">退出</a>
                </li>
                <li>
                    <a href="home">首页</a>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <!--左边菜单栏-->
        <div class="col-sm-2" id="userMenu" style="height: 500px;">
            <a href="${ctx}homeHigh/mybookorder" class="list-group-item" target="withmeFrame" >
                         <span class="glyphicon glyphicon-th-list" aria-hidden="true">
                         </span>我的订单</a>
            <a href="${ctx}homeHigh/myReview" class="list-group-item" target="withmeFrame" >
                         <span class="glyphicon glyphicon-comment" aria-hidden="true">
                         </span>我的评论</a>
            <a href="${ctx}homeHigh/myComtyoOrderList" class="list-group-item" target="withmeFrame" >
                         <span class="glyphicon glyphicon-list" aria-hidden="true">
                         </span>我的兑换记录</a>
            <a href="${ctx}homeHigh/myintegral" class="list-group-item" target="withmeFrame">
                        <span class="glyphicon glyphicon-align-left" aria-hidden="true">
                        </span>积分兑换</a>
        </div>
        <!--右边内容   scrolling：滚动条-->
        <div class="col-sm-10" style="height: 500px;" id="content">
            <iframe  src="/static/img/logo.png" id="withmeFrame" name="withmeFrame"
                     scrolling="auto"  frameborder="0" width="100%"  height="100%" frameBorder="0">
            </iframe>
        </div>
        <!-- 底部页脚部分 -->
        <div class="footer">
            <p class="text-center">
                2020&copy; 桃子大帅比
            </p>
        </div>
    </div>
</div>
</body>
</html>
